﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.Model.District>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết quận huyện
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% if (ViewData["MessageInfo"] == null)
   {%>
   <table class="admintable">
    <tr>
        <td class="key">Tên quận huyện</td>
        <td><%=Html.Encode(Model.Name) %></td>
    </tr>
    <tr>
        <td class="key">Thuộc tỉnh thành</td>
        <td><%=Html.Encode(Model.City.Name) %></td>
    </tr>
    <tr>
        <td class="key">Tên viết tắt</td>
        <td><%=Html.Encode(Model.ShortName) %></td>
    </tr>
   </table> 
<%} %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
<td>
    <%= Html.Toolbar("Thêm mới", "/Districts/CreateCms", "new")%>
    <%= Html.Toolbar("Sửa", string.Format("/Districts/EditCms/{0}", Model.ID), "edit")%>
    <%= Html.Toolbar("Xóa", "/Districts/DeleteCms", "delete")%>
    <%= Html.Toolbar("Quay lại", "/Districts/IndexCms", "back")%>
</td>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
Chi tiết quận huyện
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
<%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
